package com.hsshy.beam.websocket;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class WebSocketController {


    @RequestMapping("/chat.html/{nickName}")
    public String chat(@PathVariable String nickName, Model model){
        model.addAttribute("nickName",nickName);
        return "chat.html";
    }
}
